#include "formviewrecord.h"
#include "ui_formviewrecord.h"
#include "../jsonhelp.h"

FormViewRecord::FormViewRecord(QWidget *parent) :
    BaseWidget(parent),
    ui(new Ui::FormViewRecord)
{
    ui->setupUi(this);

    //init widget and data.
    jsonHelp jshlp;
//    jshlp.insertGroup();
    jshlp.readData();//! [1]
    jshlp.updateWidget(ui->tabWidget);//! [2]
//    for(int i= 0;i<3;i++){
//        ui->tabWidget->addTab(ui->tableWidget,QString("the %1").arg(i+1));
//    }
}

FormViewRecord::~FormViewRecord()
{
    delete ui;
}

//QTableWidget *FormViewRecord::currentTable()
//{
//    return ui->tableWidget;
//}

